﻿using GalaSoft.MvvmLight.Command;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace AZai.ViewModel
{
    public class HomeViewModel:TabBase
    {
        private ViewModelExampleBase m_ExampleVM;
        public HomeViewModel(ViewModelExampleBase exampleVM)
        {
            m_ExampleVM = exampleVM;
            IsPinned = true;
        }

        /// <summary>
        /// 命令Command
        /// </summary>
        public ICommand OpenMenu => new RelayCommand<string>((e) =>
        {
            switch (e)
            {
                case "新建页面":
                    m_ExampleVM.AddNewPage(PageType.Bidding);
                    break;
                default:
                    break;
            }
        });

    }
}
